package cn.edu.hust.sse.software7.class3.entities;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
/**
 * This is the commons of the product, the user of this product can leave any common about this
 * product.
 * 
 * @author mason
 * 
 */
@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class EBCommonOnProduct implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long commonId;
	@Persistent
	private String commonContext;
	@Persistent
	private Long commonerId;
	@Persistent
	private Long commonProdId;
	@Persistent
	private Date commonDate;
	public EBCommonOnProduct(String commonContext, Long commonerId,
			Long commonProdId, Date commonDate) {
		super();
		this.commonContext = commonContext;
		this.commonerId = commonerId;
		this.commonProdId = commonProdId;
		this.commonDate = commonDate;
	}
	public String getCommonContext() {
		return commonContext;
	}
	public void setCommonContext(String commonContext) {
		this.commonContext = commonContext;
	}
	public Long getCommonerId() {
		return commonerId;
	}
	public void setCommonerId(Long commonerId) {
		this.commonerId = commonerId;
	}
	public Long getCommonProdId() {
		return commonProdId;
	}
	public void setCommonProdId(Long commonProdId) {
		this.commonProdId = commonProdId;
	}
	public Date getCommonDate() {
		return commonDate;
	}
	public void setCommonDate(Date commonDate) {
		this.commonDate = commonDate;
	}
	public Long getCommonId() {
		return commonId;
	}
	
}
